package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_serialnum_inf")
 /**
 * 系统流水号信息
 *
 * @author sasazaixian
 * @Date 2018-10-25 18:29
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class SysSerialnumInf extends Model<SysSerialnumInf> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */
    @TableId(value = "ssi_id", type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String ssiId; //
    @Override
    protected Serializable pkVal() {
        return this.ssiId;
    }
    
    //扩展能查询字段
    @TableField(exist = false) 
    private String key ;
    //开始日期
    @TableField(exist = false)     
    private String sdate;
    //截止日期 
    @TableField(exist = false) 
	private String edate;
    //排序字段
    @TableField(exist = false) 
	private String  sortField ;
	//排序	
	@TableField(exist = false) 
	private String sortOrder;
	
    public void setKey(String key) {
		this.key = key;
	}
	public String getKey() {
		return key;
	}	
	public void setSortField(String sortField) {
		this.sortField = sortField;
	}
	public String getSortField() {
		return sortField;
	}
	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}
	public String getSortOrder() {
		return sortOrder;
	}
	public void setEdate(String edate) {
		this.edate = edate;
	}
	public String getEdate() {
		return edate;
	}
	public void setSdate(String sdate) {
		this.sdate = sdate;
	}
	public String getSdate() {
		return sdate;
	}	
	
	


    @ApiModelProperty(value = "类型")
    @TableField("ssi_type")
    private String ssiType;     //类型

    @ApiModelProperty(value = "日期")
    @TableField("ssi_date")
    private String ssiDate;     //日期

    @ApiModelProperty(value = "序列号")
    @TableField("ssi_num")
    private Integer ssiNum;     //序列号

    public String getSsiId(){
        return ssiId;
    }
    public void setSsiId(String ssiId){
        this.ssiId=ssiId;
    }
    public String getSsiType(){
        return ssiType;
    }
    public void setSsiType(String ssiType){
        this.ssiType=ssiType;
    }
    public String getSsiDate(){
        return ssiDate;
    }
    public void setSsiDate(String ssiDate){
        this.ssiDate=ssiDate;
    }
    public Integer getSsiNum(){
        return ssiNum;
    }
    public void setSsiNum(Integer ssiNum){
        this.ssiNum=ssiNum;
    }

}
